import tabbarData from '../../common/tarbardata.js'

export default {
    data() {
        return {
            tabbardata:tabbarData,
            result2:''
        }
    },
    onInit() {
        console.log("sdfsf");
    },
    //菜单栏图标的点击事件响应函数
    change:async function(e) {
        console.log("fghhgfh");
        for (let i = 0; i < this.tabbardata.length; i++) {
            let element = this.tabbardata[i];
            element.show = false;
            if (i === e.index) {
                element.show = true;
            }
        }
    }

}
